package com.hgxd.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hgxd.entity.pojo.HumHistoryEntity;
import com.hgxd.entity.res.ResHumHistory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: wtf
 * @Description:
 * @Date: 2022/10/20/10:34
 */
@Mapper
public interface HumHistoryDao extends BaseMapper<HumHistoryEntity> {
    /**
     * 根据柜号、铜排名称和时间查询对应一天铜排的的集合
     * @param cntrNo
     * @param humName
     * @param time
     * @return
     */
    List<ResHumHistory> getDataByTimeAndCntrNo(@Param("cntrNo") String cntrNo, @Param("humName") String humName, @Param("time") String time);

    List<HumHistoryEntity> getNews();
}
